package xhwl.insurance.http.bean.resp;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by fuyi on 2017/11/22.
 */

public  class HospitalListResp implements Parcelable {
    /**
     * {
     * ”PROVINCE_NAME”: ”北京市”,
     * ”CITY_NAME”: ”北京市”,
     * ”DISTRICT_NAME”: ”东城区”,
     * ”HOS_ID”: ”991”,
     * ”HOS_NAME”: ”同仁医院”,
     * ”HOS_PIC”: ”http://weixin.yk2020.com/upload/hos_pic/991/991_14989.jpg”,
     * ”HOS_ADDRESS”: ”同仁医院（北京市东城区东交民巷1号，百年老院）”,
     * ”HOS_DESC”: ”
     * <p>\r\n\t北京同仁医院是一所以眼科、耳鼻咽喉研究所和心血管疾病诊疗为重点的百年老院,是一家大型综合性三甲医院。北京同仁医院眼科的特长是在眼底病、眼外伤、青光眼、角膜移植、眼部整形、激光诊疗；北京同仁医院耳鼻咽喉研究所在人工耳蜗植入、全耳再造、听力康复、头颈肿瘤治疗、气管异物取出、鼻内窥镜技术、睡眠呼吸暂停综合症治疗等方面处于国内领先地位，某些领域达到国际先进水平。\r\n</p>\r\n
     * <p>\r\n\t北京同仁医院设有知名专家汇集的北京市眼科会诊中心、北京市耳鼻咽喉科会诊中心、北京市糖尿病综合会诊中心、北京泌尿外科会诊中心，还建立了国际眼病诊疗中心、白内障防治中心、屈光矫治中心、验光配镜及隐形眼镜中心、鼻眼相关疾病诊疗中心、睡眠呼吸监测中心、临床听力学中心以及人工耳蜗植入中心等全方位医疗服务体系。\r\n</p>”,
     * ”LEVEL_NAME”: ”三级甲等”,
     * ”HOS_XZ”: ”公立”,
     * ”TYPE_NAME”: ”综合医院”
     */


    public String PROVINCE_NAME;
    public String CITY_NAME;
    public String DISTRICT_NAME;
    public String HOS_ID;
    public String HOS_NAME;
    public String HOS_ADDRESS;
    public String HOS_DESC;
    public String LEVEL_NAME;
    public String HOS_XZ;
    public String TYPE_NAME;
    public String HOS_PIC;

    public String getHOS_PIC() {
        return HOS_PIC;
    }

    public void setHOS_PIC(String HOS_PIC) {
        this.HOS_PIC = HOS_PIC;
    }


    public String getPROVINCE_NAME() {
        return PROVINCE_NAME;
    }

    public void setPROVINCE_NAME(String PROVINCE_NAME) {
        this.PROVINCE_NAME = PROVINCE_NAME;
    }

    public String getCITY_NAME() {
        return CITY_NAME;
    }

    public void setCITY_NAME(String CITY_NAME) {
        this.CITY_NAME = CITY_NAME;
    }

    public String getDISTRICT_NAME() {
        return DISTRICT_NAME;
    }

    public void setDISTRICT_NAME(String DISTRICT_NAME) {
        this.DISTRICT_NAME = DISTRICT_NAME;
    }

    public String getHOS_ID() {
        return HOS_ID;
    }

    public void setHOS_ID(String HOS_ID) {
        this.HOS_ID = HOS_ID;
    }

    public String getHOS_NAME() {
        return HOS_NAME;
    }

    public void setHOS_NAME(String HOS_NAME) {
        this.HOS_NAME = HOS_NAME;
    }

    public String getHOS_ADDRESS() {
        return HOS_ADDRESS;
    }

    public void setHOS_ADDRESS(String HOS_ADDRESS) {
        this.HOS_ADDRESS = HOS_ADDRESS;
    }

    public String getHOS_DESC() {
        return HOS_DESC;
    }

    public void setHOS_DESC(String HOS_DESC) {
        this.HOS_DESC = HOS_DESC;
    }

    public String getLEVEL_NAME() {
        return LEVEL_NAME;
    }

    public void setLEVEL_NAME(String LEVEL_NAME) {
        this.LEVEL_NAME = LEVEL_NAME;
    }

    public String getHOS_XZ() {
        return HOS_XZ;
    }

    public void setHOS_XZ(String HOS_XZ) {
        this.HOS_XZ = HOS_XZ;
    }

    public String getTYPE_NAME() {
        return TYPE_NAME;
    }

    public void setTYPE_NAME(String TYPE_NAME) {
        this.TYPE_NAME = TYPE_NAME;
    }


    @Override
    public int describeContents() {
        // TODO Auto-generated method stub
        return 0;
    }
    @Override
    public void writeToParcel(Parcel arg0, int arg1) {
        // TODO Auto-generated method stub
        // 1.必须按成员变量声明的顺序封装数据，不然会出现获取数据出错
        // 2.序列化对象

        arg0.writeString(PROVINCE_NAME);
        arg0.writeString(CITY_NAME);
        arg0.writeString(HOS_NAME);
        arg0.writeString(DISTRICT_NAME);
        arg0.writeString(HOS_ID);
        arg0.writeString(HOS_NAME);
        arg0.writeString(HOS_ADDRESS);
        arg0.writeString(HOS_DESC);
        arg0.writeString(LEVEL_NAME);
        arg0.writeString(HOS_XZ);
        arg0.writeString(TYPE_NAME);
        arg0.writeString(HOS_PIC);
    }



    public static final Parcelable.Creator<HospitalListResp> CREATOR = new Creator<HospitalListResp>() {
        @Override
        public HospitalListResp createFromParcel(Parcel in) {
            HospitalListResp javaBean = new HospitalListResp();
            javaBean.PROVINCE_NAME = in.readString();
            javaBean.CITY_NAME = in.readString();
            javaBean.DISTRICT_NAME = in.readString();
            javaBean.HOS_ID = in.readString();
            javaBean.HOS_NAME = in.readString();
            javaBean.HOS_ADDRESS = in.readString();
            javaBean.HOS_DESC = in.readString();
            javaBean.LEVEL_NAME = in.readString();
            javaBean.LEVEL_NAME = in.readString();
            javaBean.HOS_XZ = in.readString();
            javaBean.TYPE_NAME = in.readString();
            javaBean.HOS_PIC = in.readString();

            return javaBean;
        }

        @Override
        public HospitalListResp[] newArray(int size) {
            return new HospitalListResp[size];
        }
    };

    @Override
    public String toString() {
        return "HospitalListResp{" +
                "PROVINCE_NAME='" + PROVINCE_NAME + '\'' +
                ", CITY_NAME='" + CITY_NAME + '\'' +
                ", DISTRICT_NAME='" + DISTRICT_NAME + '\'' +
                ", HOS_ID='" + HOS_ID + '\'' +
                ", HOS_NAME='" + HOS_NAME + '\'' +
                ", HOS_ADDRESS='" + HOS_ADDRESS + '\'' +
                ", HOS_DESC='" + HOS_DESC + '\'' +
                ", LEVEL_NAME='" + LEVEL_NAME + '\'' +
                ", HOS_XZ='" + HOS_XZ + '\'' +
                ", TYPE_NAME='" + TYPE_NAME + '\'' +
                ", HOS_PIC='" + HOS_PIC + '\'' +
                '}';
    }

}
